﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="profile.aspx.vb" Inherits="nigerianfoodlove.profile" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="ID" DataSourceID="SqlDataSource1">
        <Columns>
            <asp:BoundField DataField="firstname" HeaderText="Firstname" 
                SortExpression="firstname" />
            <asp:BoundField DataField="lastname" HeaderText="Lastname" 
                SortExpression="lastname" />
            <asp:BoundField DataField="emailaddress" HeaderText="Emailaddress" 
                SortExpression="emailaddress" />
            <asp:BoundField DataField="phonenumber" HeaderText="Phone number" 
                SortExpression="phonenumber" />
            <asp:BoundField DataField="cookname" HeaderText="Cookname" 
                SortExpression="cookname" />
            <asp:ImageField DataImageUrlField="picture" DataImageUrlFormatString="{0}" 
                HeaderText="Picture">
                <ControlStyle CssClass="adjustgrid" />
            </asp:ImageField>
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" 
        SelectCommand="SELECT * FROM [profile] WHERE ([cookname] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter Name="cookname" QueryStringField="cookname" 
                Type="String" />
        </SelectParameters>
    </asp:SqlDataSource>
    <br />
    <asp:Button ID="cmdeditprofile" runat="server" PostBackUrl="~/editprofile.aspx" 
        Text="Edit Profile" />
    </asp:Content>
